package com.card.manager.services;

import java.util.List;
import java.util.Map;

import com.card.framework.mybatis.optimist.ModifiedByAnotherUserException;
import com.card.framework.page.model.PageModel;
import com.card.manager.domain.Mad;

public interface MadService {
	Map<String, Object> selectMadForPage(Mad mad,PageModel pageModel);
	void deleteMads(List<Mad> mad) throws ModifiedByAnotherUserException,Exception;
	void addOrUpdate(Mad mad);
	Mad getById(long id);
	int count(Mad mad);
}
